ImageGear Professional v18 for Mac
Flipping an Image

The Processing menu contains a group of Flip Vertically and Flip Horizontally items.

The following code fragment demonstrates a vertical flip:

 
Copy Code

- (IBAction)mnuProcessingFlipV:(id)sender {
    if(IG_image_is_valid(hIGear))
    {
        IG_IP_flip(hIGear, IG_FLIP_VERTICAL);
        // Update main view
        [mainScrollViewOutlet setNeedsDisplay:YES];
    }
}

Similarly, using the IG_FLIP_HORIZONTAL constant for the last argument of IG_IP_flip() flips an image horizontally.

As in the case of Rotating an Image, this function physically rearranges the pixels of your source image.

This is an original image flipped vertically:

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback